//
//  ApplyDetailPersonController.swift
//  xiaoqiao
//
//  Created by 冷子豪 on 2017/8/4.
//  Copyright © 2017年 冷子豪. All rights reserved.
//

import UIKit

class ApplyDetailPersonController: UITableViewController {

    @IBOutlet weak var sexTextField: UITextField!
    @IBOutlet weak var marriageTextField: UITextField!
    @IBOutlet weak var childTextField: UITextField!
    @IBOutlet weak var educationTextField: UITextField!
    @IBOutlet weak var addressTextField: UITextField!
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        sexTextField.text = theUser.sex
        marriageTextField.text = theUser.marriage
        // 子女个数
        if theUser.countOfChildren == 3{
            childTextField.text = "3个及以上"
        } else if theUser.countOfChildren == nil{
            childTextField.text = ""
        } else {
            childTextField.text = "\(String(describing: theUser.countOfChildren))"
        }
        educationTextField.text = theUser.education
//        addressTextField.text = 
    }
    @IBAction func buttonClick(_ sender: UIBarButtonItem) {
        _ = navigationController?.popViewController(animated: true)
    }
}
